﻿using JUtil.Path;

namespace projectgenerator
{
    public class ProjectGenerator
    {
        public readonly string ProjectPath;
        public readonly string ProjectSrc;
        public readonly string ProjectDoc;
        public readonly string ProjectRef;
        public readonly string ProjectEnv;
        
        public ProjectGenerator(string ProjectPath)
        {
            this.ProjectPath = ProjectPath;
            this.ProjectSrc = File.GetAbsolutePath(ProjectPath, "src");
            this.ProjectDoc = File.GetAbsolutePath(ProjectPath, "doc");
            this.ProjectRef = File.GetAbsolutePath(ProjectPath, "reference");
            this.ProjectEnv = File.GetAbsolutePath(ProjectSrc, "env");
        }

        public void Build() 
        {
            Directory.MakeSureExists(ProjectSrc);
            Directory.MakeSureExists(ProjectDoc);
            Directory.MakeSureExists(ProjectRef);
            Directory.MakeSureExists(ProjectEnv);
        }


    } // end of ProjectGenerator
}
